xen: adopt .deinit_pdata and improve timer handling
authorDario Faggioli <dario.faggioli@citrix.com>
Mon, 9 May 2016 14:41:00 +0000 (15:41 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 9 May 2016 14:43:55 +0000 (15:43 +0100)
commit2656bc7b0c145932e1af80d54d48975edd081997
treea7f0229666efe5db8c9f499c52cc50162a420a78
parentfb0c3a8a30906005afc8c976b5c469d86496871e
xen: adopt .deinit_pdata and improve timer handling

The scheduling hooks API is now used properly, and no
initialization or de-initialization happen in
alloc/free_pdata any longer.

In fact, just like it is for Credit2, there is no real
need for implementing alloc_pdata and free_pdata.

This also made it possible to improve the replenishment
timer handling logic, such that now the timer is always
kept on one of the pCPU of the scheduler it's servicing.
Before this commit, in fact, even if the pCPU where the
timer happened to be initialized at creation time was
moved to another cpupool, the timer stayed there,
potentially inferfering with the new scheduler of the
pCPU itself.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-and-Tested-by: Meng Xu <mengxu@cis.upenn.edu>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/sched_rt.c